Skip to content

feat: add clean option for cleaning build directory#653

Open
i-yusuf wants to merge 1 commit intocallstack:mainfrom
i-yusuf:main
Open

feat: add clean option for cleaning build directory#653
i-yusuf wants to merge 1 commit intocallstack:mainfrom
i-yusuf:main

Conversation

@i-yusuf
Copy link

@i-yusuf i-yusuf commented Oct 18, 2024

Summary

Added a 'clean' flag to the build command with a default value of true.
This flag allows for optional cleaning of the build directory before executing the build process.
By default, the build directory will be cleaned unless explicitly set otherwise.

When using nodemon, the default behavior of deleting the output directory may cause issues with Metro Bundler. To avoid this, users can disable the clean flag by passing --clean false.

Test plan

  1. Run build (without any flags).
    • Ensure the build directory is cleaned by default.
  2. Run build --clean false.
    • Ensure the build proceeds without cleaning the build directory.
  3. Run build --clean.
    • Ensure the build directory is cleaned before building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant